package ${packageName}.entity.form;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.monkey.common.cbs.entity.form.BaseSaveForm;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class  ${entry.entityName?cap_first}SaveForm extends BaseSaveForm {
<#list entry["javaFieldInfos"] as field>
    <#if field.columnName!="id"&&field.columnName!="ctd_time"&&field.columnName!="upd_time"&&field.columnName!="ctd_by"&&field.columnName!="upd_by"&&field.columnName!="deleted">
        <#if field.type=="Integer"||field.type=="Long"||field.type=="Short">
          @ApiModelProperty(name = "${field.filedName?uncap_first}" , value = "${field.filedDescription}")
        <#else >
          @ApiModelProperty(name = "${field.filedName?uncap_first}", value = "${field.filedDescription}")
        </#if>
        <#if field.type=="Date">
          @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
          @JSONField(format = "yyyy-MM-dd HH:mm:ss")
          @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        </#if>
      private ${field.type} ${field.filedName?uncap_first};
    </#if>
</#list>
}
